{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "c509d68f",
   "metadata": {},
   "source": [
    "### 笔记"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "2a439a76",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 优化课表\n",
    "\n",
    "\n",
    "user_data = \"qiuxingqian\"\n",
    "password_data = \"123456\"\n",
    "\n",
    "\n",
    "count = 10\n",
    "while True:\n",
    "    count -= count\n",
    "    if count == 1:\n",
    "        print(\"您好，您的使用次数已用完~\")\n",
    "        \n",
    "    username = input(\"请输入正确的姓名：\")\n",
    "    password = input(\"请输入正确的密码：\")\n",
    "    \n",
    "    if username == user_data:\n",
    "        if username == password_data:\n",
    "            print(\"登录成功\",user_data)\n",
    "            print(\"（作为我们尊敬的会员，您有10次查询机会~）\")\n",
    "           \n",
    "    else:\n",
    "        print(\"登录成功，欢迎使用\")\n",
    "        print(\"（作为普通用户，您有5次查询机会~）\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "b59c89e1",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
